﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfSnqkGasAnalysis.Model;

namespace WpfSnqkGasAnalysis.IData
{
    /// <summary>
    /// 接口；水露点子表
    /// </summary>
    /// 创建时间：2022-12-23 14:43:29。作者：王浩力
    public interface IWater_point_itemDAL
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        IResult Add(Water_point_item info);

        /// <summary>
        /// 物理删除
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        IResult Delete(long id);

        /// <summary>
        /// 根据主表id，查询列表
        /// </summary>
        /// <param name="mainKey"></param>
        /// <returns></returns>
        /// 创建时间：2022-12-23 16:10:35。作者：王浩力
        List<Water_point_item> GetList(long mainKey);

        /// <summary>
        /// 分页查询子项
        /// </summary>
        /// <param name="where">查询条件</param>
        /// <param name="p">当前页码</param>
        /// <param name="rows">当前记录数</param>
        /// <returns></returns>
        /// 创建时间：2023-1-4 11:01:36。作者：王浩力
        PageModel<Water_point_item> GetPageItem(Water_point where, int p, int rows);
    }
}
